package com.we.risk.phoneRecord.stage2.adm;

import java.util.HashSet;

public class UserBasicInfo {
    public UserBasicInfo() {
        number_set = new HashSet<>();
        outgo_set = new HashSet<>();
        bad_set = new HashSet<>();
        time0_set = new HashSet<>();
        time60_set = new HashSet<>();
        morning_set = new HashSet<>();
        afternoon_set = new HashSet<>();
        night_set = new HashSet<>();
        prov_set = new HashSet<>();
        city_set = new HashSet<>();
    }

    public int income_cnt = 0;
    public int outgo_cnt = 0;
    public int bad_cnt = 0;
    public int morning_cnt = 0;
    public long total_duration = 0;
    public HashSet<String> number_set;
    public HashSet<String> outgo_set;
    public HashSet<String> bad_set;
    public HashSet<String> time0_set;
    public HashSet<String> time60_set;
    public HashSet<String> morning_set;
    public HashSet<String> afternoon_set;
    public HashSet<String> night_set;
    public HashSet<String> prov_set;
    public HashSet<String> city_set;

    public int getProvNum() {
        return prov_set.size();
    }

    public long getCityNum() {
        return city_set.size();
    }

    public int getUser_number() {
        if (number_set.contains(null)) {
            return number_set.size() - 1;
        }
        return number_set.size();
    }

    public long getTotal_duration() {
        return total_duration;
    }

    public int getOutgo_number() {
        if (outgo_set.contains(null)) {
            return outgo_set.size() - 1;
        }
        return outgo_set.size();
    }

    public int getbad_number() {
        if (bad_set.contains(null)) {
            return bad_set.size() - 1;
        }
        return bad_set.size();
    }

    public int getTime0_number() {
        if (time0_set.contains(null)) {
            return time0_set.size() - 1;
        }
        return time0_set.size();
    }

    public int getTime60_number() {
        if (time60_set.contains(null)) {
            return time60_set.size() - 1;
        }
        return time60_set.size();
    }

    public int getMorning_number() {
        if (morning_set.contains(null)) {
            return morning_set.size() - 1;
        }
        return morning_set.size();
    }

    public int getAfternoon_number() {
        if (afternoon_set.contains(null)) {
            return afternoon_set.size() - 1;
        }
        return afternoon_set.size();
    }

    public int getNight_number() {
        if (night_set.contains(null)) {
            return night_set.size() - 1;
        }
        return night_set.size();
    }

    public int getIncome_cnt() {
        return income_cnt;
    }

    public int getOutgo_cnt() {
        return outgo_cnt;
    }

    public int getBad_cnt() {
        return bad_cnt;
    }

    public int getMorning_cnt() {
        return morning_cnt;
    }
}
